<{if $data.ad_pic_link}><a href="<{$data.ad_pic_link}>" target="_blank"><{/if}>
  <img src=<{$data.ad_pic|storager}> alt="<{$setting.ad_pic_txt}>" <{if $data.ad_pic_width}>width='<{$data.ad_pic_width}>'<{/if}> <{if $data.ad_pic_height}>height='<{$data.ad_pic_height}>'<{/if}>>
  <{if $data.ad_pic_link}></a><{/if}>